package com.ken.mall.dto;
import io.swagger.annotations.ApiParam;
import lombok.Data;

@Data
public class PageHelpDto {
    @ApiParam("页码")
    private Integer offset=1;
    @ApiParam("每页条数")
    private Integer limit=10;
    @ApiParam("排序字段")
    private String sortby="id";
    @ApiParam("升序：aesc降序：desc")
    private String order="desc";

    public void setLimit(Integer limit){
        this.limit = limit>50?50:limit;
    }

}
